# with语句，会自动关闭文件流
with open('test.txt', mode='r', encoding='utf-8') as file:
    content = file.read()
    print(content)